package com.bml.architect.sentinel.exceptions;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class CommonBlockHandler {

    /**
     * 注意： 必须为 static 函数   多个方法之间方法名不能一样
     * @param exception
     * @return
     */
    public static String handleException(Integer id, BlockException exception){
        return "{'errcode:':'-2',msg:'===被限流啦==='}";
    }


}
